<template>
	<view id="wrap" class="dis_cc">
		<view class="tool-item dis_cc fdc" @click="makePhoneCall">
			<image class="image" src="../../../static/common/icon-service-2.png" mode=""></image>
			<text>官方客服</text>
			<view class="number">028-7754820</view>
		</view>

		<button open-type="contact" bindcontact="handleContact">
			<view class="tool-item dis_cc fdc">
				<view class="vx_s">微信客服</view>
				<image class="vx_code" src="/static/common/logo.png" mode=""></image>
				<view class="scan_code">微信扫码添加客服微信</view>
			</view>
		</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}

		},
		methods: {
			makePhoneCall() {
				uni.makePhoneCall({
					phoneNumber: '1340000' //仅为示例，并非真实的电话号码
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	#wrap {
		width: 100vw;
		min-height: 50vh;
		flex-direction: column;
	}

	.tool-item {
		margin-top: 200rpx;
		font-size: 28rpx;

		.image {
			width: 64rpx;
			height: 64rpx;
		}

		>text {
			margin-top: 30rpx;
		}
	}

	.number {
		font-weight: 800;
		font-size: 56rpx;
		color: #1A1A1A;
	}

	.vx_s {
		font-weight: bold;
		font-size: 36rpx;
		color: #1A1A1A;
	}

	.vx_code {
		width: 360rpx;
		height: 360rpx;
	}

	.scan_code {
		font-weight: 400;
		font-size: 24rpx;
		color: #333333;
	}

	// 重置按钮样式
	button {
		margin: 0;
		padding: 0;
		border-radius: 0;
		border: none;
		background-color: transparent;
	}

	button::after {
		border: none;
	}

	.button-hover {
		color: rgba(0, 0, 0, 0.6);
		background-color: #fff;
	}
</style>